﻿using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MyCompany.WebCrawler.Domain;

namespace MyCompany.WebCrawler.Test.Domain.DownloaderTests.Given_Url
{
    [TestClass]
    public class When_DownloadPage:Context
    {
        private string page;

        public override void Act()
        {
            var downloader = new Downloader();
            page = downloader.LoadPage("http://gooogle.com");
        }

        [TestMethod]
        public void Then_GooglePageIsHere()
        {
            page.Should().Contain("<title>Google</title>");
        }
    }
}
